package cn.lecosa.spark.kryo


import com.esotericsoftware.kryo.Kryo
import org.apache.spark.serializer.KryoRegistrator

/**
  * Created by todd.chen on 5/23/16.
  * email : todd.chen@ximalaya.com
  */
class MyRegisterKryo extends KryoRegistrator {
  override def registerClasses(kryo: Kryo): Unit = {
    kryo.register(classOf[UserInfo])
  }
}